// ImmKpApplicationData.cpp: implementation of the ImmKpApplicationData class.
//
//////////////////////////////////////////////////////////////////////
#define _CRT_SECURE_NO_DEPRECATE 
#include "ImmKpApplicationData.h"

//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////

ImmKpApplicationData::ImmKpApplicationData()
{
	this->sf=NULL;

	this->hInst			= NULL;
	this->iCmdShow		= NULL;

//	this->firstBuffer	= NULL;
	this->secondBuffer	= NULL;

	this->ikg			= NULL;
	this->ikmw			= NULL;
	this->ikrc			= NULL;
	this->ikst			= NULL;
}

ImmKpApplicationData::~ImmKpApplicationData()
{
	if(this->sf) {	delete(this->sf);	this->sf = NULL; }
//	if(this->firstBuffer) {	delete(this->firstBuffer);	this->firstBuffer = NULL; }
	if(this->secondBuffer) { delete(this->secondBuffer);	this->secondBuffer = NULL; }
/*//@IKG*/	if(this->ikg) { delete(this->ikg); this->ikg = NULL; }
	if(this->ikmw) { delete(this->ikmw); this->ikmw = NULL; }
	if(this->ikrc) { delete(this->ikrc); this->ikrc = NULL; }
	if(this->ikst) { delete(this->ikst); this->ikst = NULL; }
}

//DEL BOOL ImmKpApplicationData::FreeSecondBuffer()
//DEL {
//DEL 	if(this->secondBuffer->isEmpty())
//DEL 		return TRUE;
//DEL 	if((this->firstBuffer->isEmpty()) || (this->firstBuffer->bBeenOnScreen))
//DEL 	{
//DEL 		if(this->firstBuffer->bBeenOnScreen)
//DEL 			this->firstBuffer->SaveToFile("TODO_this");
//DEL 		///copy secondBuffer 2 firstBuffer
//DEL 		return TRUE;
//DEL 	}
//DEL 	return FALSE;
//DEL }

//DEL HRESULT ImmKpApplicationData::init()
//DEL {
//DEL 
//DEL }
